package cn.itcast;

import java.io.File;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;

public class test {
    public static void main(String[] args) throws IOException {
        Long timeLong =12312414134124L;
        String time = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date(timeLong));
        System.out.println("time = " + time);
    }
}
